package com.wanda.movie;

public class movie_class {
    private String name;
    private int age;
    private int RMB;

    //设置
    public void setName(String name) {
        this.name = name;
    }
    public void setAge(int age) {
        this.age = age;
    }

    public void setRMB(int age) {
        if(age < 18){
            this.RMB = 20;
        }else if(age >= 18){
            this.RMB = 40;
        }
    }
    //取用
    public String getName() {
        return name;
    }
    public int getAge() {
        return age;
    }
    public int getRMB() {
        return RMB;
    }
}
